package com.android.plc.classholder;

import java.io.Serializable;

public class BasicItem implements Serializable
{
	private static final long serialVersionUID = 8745631921507026861L;
	public int _id;
	public Type type;

	public BasicItem(Type type)
	{
		this.type = type;
	}

	public static enum Type
	{
		NORMAL_ITEM(0x0000), ALL_ITEM(0x1000), ADD_ITEM(0x1001), DEL_ITEM(0x1002);
		private final int val;

		private Type(int value)
		{
			val = value;
		}

		public int getValue()
		{
			return this.val;
		}
	};

	@Override
	public String toString()
	{
		switch (type)
		{
		case NORMAL_ITEM:
			return null;
		case ALL_ITEM:
			return "ALL_ITEM";
		case DEL_ITEM:
			return "DEL_ITEM";
		case ADD_ITEM:
			return "ADD_ITEM";
		default:
			return null;
		}
	}

}
